# coding: utf-8
import os

import pytest


@pytest.fixture(scope='module')
def client():
    base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
    os.environ['API_SETTINGS'] = os.path.join(base_dir, 'conf/settings.py')
    print os.environ['API_SETTINGS']

    import api
    return api.app.test_client()
